from flask import Flask

app = Flask(__name__)
# 使用<>把参数包含进来
@app.route('/<user_id>')
def index(user_id):
    return 'user_id is {}'.format(user_id)

if __name__ == '__main__':
    app.run(debug=True)